#include<stdio.h>
int main()
{
	int x,y,i;
	scanf("%d:%d",&x,&y);
	if(x>=0&&x<=12)
	{
	if((x>=0&&x<=9)&&(y>=0&&y<=9))
	printf("Only 0%d:0%d.  Too early to Dang.",x,y);
	if((x>=0&&x<=9)&&(y<=59&&y>9))
	printf("Only 0%d:%d.  Too early to Dang.",x,y);
	if((x<12&&x>=9)&&(y>=0&&y<=9))
	printf("Only %d:0%d.  Too early to Dang.",x,y);
	if((x<12&&x>=9)&&(y<=59&&y>9))
	printf("Only %d:%d.  Too early to Dang.",x,y);
    }
	else
	{
		x-=12;
		if(y!=0)
		for(i=0;i<=x;i++)
		printf("Dang");
		else
		for(i=1;i<=x;i++)
		printf("Dang");
	}
	return 0;
 } 
